package cn.itcast.erp.dao.mapper;

import cn.itcast.erp.entity.Inventory;
import cn.itcast.erp.entity.utils.AjaxResult;

import java.util.Date;
import java.util.List;

public interface InventoryMapper {

    //查询盘盈盘亏记录
    List<Inventory> findInventory(Inventory inventory);

    //查询总数量
    int count();

    //查询by id
    Inventory findInventoryById(Long uuid);

    //新增记录
    int insertInventory(Inventory inventory);

    //修改记录
    int updateInventory(Inventory inventory);

    //删除
    int deleteInventory(Long uuid);

    //审核状态变更
    int updateState(Long userId, Long uuid, Date checktime);

    //导入Excel
    List<Inventory> getAllInventoryEx();
}
